//
//  YXThemeManager.h
//  YXTheme_Example
//
//  Created by GMS on 2020/8/18.
//  Copyright © 2020 Arthur. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

#define YXThemeManagerShare [YXThemeManager shareInstance]

// 主题改变通知
#define YXThemeChangedNotification @"YXThemeChangedNotification"

typedef NS_ENUM(NSInteger, YXThemeType) {
    YXThemeTypeBlack = 1,   // 黑色主题
    YXThemeTypeWhite = 2    // 白色主题
};

@interface YXThemeManager : NSObject


/// 主题类型 黑色和白色
@property (nonatomic,assign) YXThemeType themeType;

/// 创建单例
+ (YXThemeManager *)shareInstance;

/// 改变主题
/// @param type 主题类型
- (void)chanageThemeWithType:(YXThemeType)type;

/// 根据ID获取颜色
/// @param colorName 颜色名字
+ (UIColor *)colorWithColorName:(NSString *)colorName;

/// 获取颜色
/// @param colorName 颜色名字
/// @param alpha 透明度
+ (UIColor *)colorWithColorName:(NSString *)colorName andAlpha:(CGFloat)alpha;

/// 根据图片名字获取图片
/// @param imageName 图片名字
+ (UIImage *)imageWithName:(NSString *)imageName;

/// 获取色值
/// @param colorName 颜色名字
+ (NSString *)colorStringWithColorName:(NSString *)colorName;

@end

NS_ASSUME_NONNULL_END
